<template>
  <div>
    <p @click="rev">{{msg}}</p>
    <button @click="rev">逆转世界</button>
  </div>
</template>

<script>
export default {
  data () {
    return {
      msg:'Hello,World'
    }
  },

  created () {

  },

  methods: {
    rev(){
      
      this.msg=this.msg.split("").reverse().join('');
    }
  }
}
</script>

<style scoped lang='less'>

</style>
